package com.iot.comprehensive.face.service;

import com.iot.comprehensive.face.model.User;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

/**
 * @Author 朱泽玉
 * @Create 2021/6/26 12:20
 * @Description
 * @Modified By:
 */
@Service
public interface UserService{
    // 更新用户信息
    public void update(User user) throws IOException;
    // 删除用户信息
    public void delete(Long id) throws IOException;

    public User getByAccount(Long id);
    // 添加用户
    public void add(User user);
    // 通过id获取单个用户
    public User getOne(Long id) throws IOException;
    // 获取全部用户
    public List<User> getAll() throws IOException;
}
